package com.youngjun.common.mybatis.autoconfigure;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "mybatis-helper")
public class MybatisHelperProperties {

    private String primaryKey = "id";

    private Boolean enabled = true;

    private String createdTimeKey = "gmtCreated";

    private String modifiedTimeKey = "gmtModified";

    public String getPrimaryKey() {
        return primaryKey;
    }

    public MybatisHelperProperties setPrimaryKey(String primaryKey) {
        this.primaryKey = primaryKey;
        return this;
    }

    public Boolean getEnabled() {
        return enabled;
    }

    public MybatisHelperProperties setEnabled(Boolean enabled) {
        this.enabled = enabled;
        return this;
    }

    public String getCreatedTimeKey() {
        return createdTimeKey;
    }

    public MybatisHelperProperties setCreatedTimeKey(String createdTimeKey) {
        this.createdTimeKey = createdTimeKey;
        return this;
    }

    public String getModifiedTimeKey() {
        return modifiedTimeKey;
    }

    public MybatisHelperProperties setModifiedTimeKey(String modifiedTimeKey) {
        this.modifiedTimeKey = modifiedTimeKey;
        return this;
    }
}
